package com.centaline.androidsalesblog.utils;

import java.util.Locale;

/**
 * 自定义百度地图工具类
 * Created by guilin on 16/1/19.
 */
public final class BdMapUtil {

    private BdMapUtil() {
        //Utility Class
    }

    /**
     * 获取百度地图截图
     *
     * @return String
     */
    public static String getBaiduMapImgUrl(double lng, double lat) {
        return String.format(Locale.CHINA, "http://api.map.baidu.com/staticimage?center=%f,%f&width=480&height=240&zoom=16",
                lng, lat);
    }
}
